package com.hxexp.weixin.mvc.pay.service;

import java.util.Map;

import com.hxexp.weixin.common.exception.ServiceException;
import com.hxexp.weixin.hpe.api.orderpayment.model.PrepayOrderParamBean;
import com.hxexp.weixin.hpe.api.orderpayment.model.PrepayOrderResultBean;

/**
 * 支付服务
 * @author li.jiang
 *
 */
public interface PayService {
    /**
     * 预付订单
     * @param prepayOrderParamBean 预付订单
     * @return 预付订单结果
     * @throws ServiceException
     */
    public PrepayOrderResultBean prepayOrder(PrepayOrderParamBean prepayOrderParamBean) throws ServiceException;

    /**
     * 保存乘客购票记录
     *
     * @param ptiks
     *            乘客购票信息key csv
     */
    public void savePassengerTicketRecord(String ptiks) throws ServiceException;

    /**
     * 生成HTML5页面调用微信支付的参数
     *
     * @param prepayId
     * @return
     */
    public Map<String, String> generatePayParam(String prepayId);
}
